# Contributor: David Demelier <markand@malikania.fr>
# Contributor: psykose <alice@ayaya.dev>
# Maintainer: psykose <alice@ayaya.dev>
pkgname=adwaita-qt6
# same as community/adwaita-qt
pkgver=1.4.1
pkgrel=0
pkgdesc="style to bend Qt applications to look like they belong into GNOME Shell"
url="https://github.com/FedoraQt/adwaita-qt"
arch="all"
license="GPL-2.0-only AND LGPL-2.1-only"
makedepends="cmake qt6-qtbase-dev samurai"
subpackages="$pkgname-dev"
source="https://github.com/FedoraQt/adwaita-qt/archive/$pkgver/adwaita-qt-$pkgver.tar.gz"
options="!check"  # no tests provided
builddir="$srcdir/adwaita-qt-$pkgver"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=MinSizeRel \
		-DUSE_QT6=ON

	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
efdc64addbd2ee4b4eb133323540a2c662cb882e42aa0573dace9044acc7638658badac3581d6cae7a3f17905692e4e8f768b6a8e3c1b4575d7e1999c1e9fe63  adwaita-qt-1.4.1.tar.gz
"
